<HTML>
 <HEAD>
  <TITLE>通过为msgButtons属性，改变按钮文字</TITLE>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <link rel="stylesheet" type="text/css" href="../../ext-4.0/resources/css/ext-all.css" />
  <script type="text/javascript" src="../../ext-4.0/bootstrap.js"></script>
  <script type="text/javascript" src="../../ext-4.0/locale/ext-lang-zh_CN.js"></script>
  <script type="text/javascript">
	Ext.onReady(function(){

		//'ok'
		Ext.MessageBox.msgButtons[0].setText('按钮一');
		//'yes'
		Ext.MessageBox.msgButtons[1].setText('按钮二');
		//'no'
		Ext.MessageBox.msgButtons[2].setText('按钮三');
		//'cancel'
		Ext.MessageBox.msgButtons[3].setText('按钮四');
		
		Ext.MessageBox.show({
			title:'提示',
			msg:'自定义按钮文字',
			modal:true,
			buttons:Ext.Msg.YESNOCANCEL
		});
	});
  </script>
 </HEAD>
 <BODY>
  
 </BODY>
</HTML>
